//BitWorks V1.0 009
//Half-Bit Gaming, LLC
//This script developed by Harvey Barnes

//bw_drawTransition(colour,data)
//returns "True" if the Transition succeeded, false if it failed.

//Intializing variables
var time = get_timer();
var count = 0.1
var running = true

draw_set_alpha(count)
draw_rectangle_colour(0,0,x,y,c_black,c_black,c_black,c_black,false)

while running {
    if count = 1 {
        
        running = false
        break
    }
    if get_timer() >= (time + 500000) {
        var time = get_timer()
        var count = (count+0.1)
        draw_set_alpha(count)
        draw_rectangle_colour(0,0,x,y,c_black,c_black,c_black,c_black,false)
    }
}
        
